package com.ftg.learn.back;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 通讯录类
 * @author kangjx
 * @createTime 2022/8/29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Note implements  Cloneable {

    /**
     * 姓名
     */
    private String name;

    /**
     * 电话
     */
    private String telphone;

    @Override
    public Note clone(){
        //无参 null
        return new Note(this.name,this.telphone);
    }

}
